<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
            margin: 0;
            padding: 0;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        ul{
            list-style: none;
            width: 800px;
            height: 100px;
            background-color: #b8a7a7;
            border: 1px solid #5e5555;
            display: flex;
            justify-content: center;
            align-items: end;
        }
        li{
            width: 60px;
            height: 60px;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 50%;
            background-color: #b97e7e;
            border: 1px solid #5e5555;
            font-size: 22px;
            transition: .3s;
            cursor: pointer;
            user-select: none;
        }
        li:hover{
            font-size: 35px;
            width: 90px;
            height: 90px;
        }
        li:hover + li{
            width: 75px; 
            height: 75px;
            font-size: 30px;
        }
        li:has(+ li:hover){
            width: 75px; 
            height: 75px;
            font-size: 30px;
        }
    </style>
</head>
<body>
    <ul>
        <li>1</li>
        <li>2</li>
        <li>3</li>
        <li>4</li>
        <li>5</li>
        <li>6</li>
        <li>7</li>
        <li>8</li>
        <li>9</li>
        <li>10</li>
    </ul>
</body>
</html>